from logging import getLogger
from db.chat import Chat
from db.message import Message
log = getLogger("MessengerAPI")

test_chat = Chat(name="Yourself") # TODO
test_msg = Message(chat_id=test_chat.id, text="Test msg")


class MessengerAPI():
    @staticmethod
    def send_msg(to_id: str, text: str):
        log.debug(f"Send message: {text} to {to_id}")
        return True

    @staticmethod
    def update_msgs():
        log.debug("Update msgs list")
        return [test_msg]

    @staticmethod
    def connect():
        log.debug("Conneted")
        return True